<template>
	<view>
		<!-- 页面 header 相关部分 -->
		<view class="header-box">
			<image :src="url" mode=""></image>
		</view>
		<!-- 内容介绍 -->
		<view class="content">
			{{eqDescribe}}
		</view>
	</view>
</template>

<script>
	import {
		gymEq
	} from '@/config/api.js'
	export default {
		data() {
			return {
				id:-1,
				eqName:'',
				url:'',
				eqDescribe:'',
			};
		},
		onLoad(option) {
			this.id = option.id;
			this.eqName = option.eqName;
			this.url = option.url2;
			this.eqDescribe = option.eqDescribe;
			uni.setNavigationBarTitle({
				title:this.eqName
			})
			// this.LoadGymEq(this.id);
		},
		methods:{
			async LoadGymEq(id){
				const data = await gymEq(id);
				if(data.code == 200){
					eqDetail = data.data;
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
.header-box {
			padding-top: 30rpx;
			padding-bottom: 30rpx;
		}
</style>
